home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 4.8 KB | 221 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: FocusSet.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODFocusSet_xh
- #define SOM_ODFocusSet_xh
-
- class ODFocusSet;
-
- #define ODFocusSet_MajorVersion 1
- #define ODFocusSet_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODFocusSet_API
- #define ODFocusSet_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODFocusSet;
- class ODFocusSetIterator;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODFocusSetCClassData ODFocusSetClassData
- #define ODFocusSetNewClass(major,minor) somNewVersionedClassReference(ODFocusSet,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODFocusSetMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODFocusSet class object, and the methods it introduces. */
- SOMEXTERN struct ODFocusSetClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken Add;
- somMToken Remove;
- somMToken Contains;
- somMToken CreateIterator;
- somMToken reserved1;
- somMToken reserved2;
- somMToken reserved3;
- somMToken reserved4;
- somMToken reserved5;
- somMToken reserved6;
- } SOMDLINK ODFocusSetClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODFocusSet_Class_Source) && !defined(SOM_Module_focusset_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODFocusSetClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODFocusSet Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODFocusSet_Add)(ODFocusSet *somSelf, Environment *ev,
- ODTypeToken focus);
- typedef void (* SOMLINK somTD_ODFocusSet_Remove)(ODFocusSet *somSelf, Environment *ev,
- ODTypeToken focus);
- typedef ODBoolean (* SOMLINK somTD_ODFocusSet_Contains)(ODFocusSet *somSelf, Environment *ev,
- ODTypeToken focus);
- typedef ODFocusSetIterator* (* SOMLINK somTD_ODFocusSet_CreateIterator)(ODFocusSet *somSelf, Environment *ev);
- }
-
- #endif /* ODFocusSet_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODFocusSet
- */
- class ODFocusSet : public ODObject
- {
- public:
-
- // ODFocusSet::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODFocusSet, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODFocusSet);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODFocusSet);
- #endif
- }
-
- // ODFocusSet::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: Add */
- void Add(Environment *ev,
- ODTypeToken focus)
- {
- SOM_ResolveD(this,ODFocusSet,ODFocusSet,Add)
- (this,ev,focus);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: Remove */
- void Remove(Environment *ev,
- ODTypeToken focus)
- {
- SOM_ResolveD(this,ODFocusSet,ODFocusSet,Remove)
- (this,ev,focus);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: Contains */
- ODBoolean Contains(Environment *ev,
- ODTypeToken focus)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODFocusSet,ODFocusSet,Contains)
- (this,ev,focus);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODFocusSet,ODFocusSet,Contains)
- (this,ev,focus);
- #endif
- }
-
- /* method: CreateIterator */
- ODFocusSetIterator* CreateIterator(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODFocusSetIterator* __somResult =
- SOM_ResolveD(this,ODFocusSet,ODFocusSet,CreateIterator)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODFocusSet,ODFocusSet,CreateIterator)
- (this,ev);
- #endif
- }
-
- }; /* ODFocusSet */
-
-
-
- #endif /* SOM_ODFocusSet_xh */
-